<?php
$tab_arr = array('AccountCoupons','AccountOrders','AccountInvites','AccountPoints','AccountCredit','AccountSetting');

foreach ($tab_arr as $val)
{
	$is_cur_tab[$val] = ($pageData['ModuleName'] == $val) ? 'class="current"' : '';
}
?>
<div class="dashboard" id="dashboard">
	<ul>
		<li <?php echo $is_cur_tab['AccountCoupons']; ?>><a href="?mod=AccountCoupons"><?php echo _('My Coupons'); ?></a><span></span></li>
		<li <?php echo $is_cur_tab['AccountOrders']; ?>><a href="?mod=AccountOrders"><?php echo _('My Orders'); ?></a><span></span></li>
		<li <?php echo $is_cur_tab['AccountInvites']; ?>><a href="?mod=AccountInvites"><?php echo _('My Invites'); ?></a><span></span></li>
		<li <?php echo $is_cur_tab['AccountPoints']; ?>><a href="?mod=AccountPoints"><?php echo _('My Points'); ?></a><span></span></li>
		<li <?php echo $is_cur_tab['AccountCredit']; ?>><a href="?mod=AccountCredit"><?php echo _('My Credit'); ?></a><span></span></li>
		<li <?php echo $is_cur_tab['AccountSetting']; ?>><a href="?mod=AccountSetting"><?php echo _('My Setting'); ?></a><span></span></li>
	</ul>
</div>  